package com;

import java.util.Calendar;

public class TimeMain {
    public static void main(String args[]) {
        int month = Calendar.getInstance().get(Calendar.MONTH);
        Calendar calendar = Calendar.getInstance();
        int y = calendar.get(Calendar.YEAR);
        int m = calendar.get(Calendar.MONTH);
        String mStr = String.valueOf(m);
        mStr = mStr.length() == 1 ? "0" + mStr : mStr;
        int d = calendar.get(Calendar.DAY_OF_MONTH);
        String dStr = String.valueOf(d);
        dStr = dStr.length() == 1 ? "0" + dStr : dStr;
       String value =  y + mStr + dStr;
        System.out.println(value + "");
    }
}
